package com.sc.nft.controller.request;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

@Data
public class PreExpendDetailsRequest {

    @ApiModelProperty(value = "铸造id")
    @NotNull(message = "铸造id不能为空")
    private Long id;

    @ApiModelProperty(value = "铸造数量")
    @NotNull(message = "铸造数量不能为空")
    @Max(value =20,message = "铸造数量最大值不能超过20")
    @Min(value = 1,message = "铸造数量最小值不能低于1")
    private Integer count;
}
